package com.yj.cmp.sdk.fusioncompute.compute.host;

import com.yj.cmp.sdk.fusioncompute.compute.host.vo.HostDetailVo;
import com.yj.cmp.sdk.fusioncompute.compute.host.vo.HostListVo;
import com.yj.cmp.sdk.fusioncompute.compute.host.vo.HostNetworkVo;
import com.yj.cmp.sdk.fusioncompute.compute.host.vo.hostStorageVo;
import org.springframework.stereotype.Service;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

import java.util.Map;

/**
 * @author Harvey_Yang
 * @date 2021/8/30 16:03
 */
@Service
public interface FcHostService {


    @GET("hosts")
    Call<HostListVo> hostList(@HeaderMap Map<String, Object> headers, @QueryMap Map<String, Object> queryParam);

    @GET("hosts/{hostId}")
    Call<HostDetailVo> hostDetail(@HeaderMap Map<String, Object> headerMap, @Path("hostId") String hostId);

    @GET("datastores")
    Call<hostStorageVo> hostStorage(@HeaderMap Map<String, Object> headers, @QueryMap Map<String, Object> queryParam);

    @GET("dvswitchs")
    Call<HostNetworkVo> hostNetworkResource(@HeaderMap Map<String, Object> headerMap, @QueryMap() Map<String, Object> queryParam);
}
